{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-offset-3 col-md-6">
        <div class="panel">
            <div class="panel-heading">站点配置</div>
            <div class="panel-body">
                <div class="alert alert-info text-center">
                    <i class="fa fa-volume-up"></i> 提示：所有价格单位均为RMB/元，可精确到小数点后两位；所有比例均为不大于100的正整数
                </div>
                <form method="post" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">ZID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" value="{$web.zid}" disabled>
                        </div>
                    </div>

					<div class="form-group">
                        <label class="col-sm-2 control-label">站点类型</label>
                        <div class="col-sm-10">
							<select name="super" class="form-control" {if condition="ZID neq 1 && config('web_super') neq 2"}disabled{/if}>
							<option value="0" {if condition="$web.super eq 0"}selected{/if}>普通分站</option>
							<option value="1" {if condition="$web.super eq 1"}selected{/if}>二级主站</option>
							{if condition="ZID eq 1"}<option value="2" {if condition="$web.super eq 2"}selected{/if}>超级主站</option>{/if}
							</select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">网站域名</label>
                        <div class="col-sm-10">
                            <input type="text" name="domain" class="form-control" value="{$web.domain}" {if condition="ZID neq 1"}disabled{/if}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">额外域名</label>
                        <div class="col-sm-10">
                            <input type="text" name="domain2" class="form-control" value="{$web.domain2}">
							<pre>请将域名cname解析到{$_SERVER['HTTP_HOST']}，域名必须要备案</pre>
                        </div>
                    </div>
					{if condition="ZID eq 1"}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">站点到期</label>
                        <div class="col-sm-10">
                            <input type="datetime" name="endtime" class="form-control" value="{$web.endtime}">
                        </div>
                    </div>
                    {/if}
					<!--div class="form-group">
						<label class="col-sm-2 control-label">全套代挂价格(成本{:config('zz_price_all')}元)</label>
						<div class="col-sm-10">
							<input type="text" name="price_all" class="form-control"
								   value="{$web.price_all}">
							<div class="alert alert-info">分别对应普通会员与VIP1～5等级，用|分隔，例如3|2|1.8|1.5|1|0.8
                            </div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单个项目代挂价格(成本{:config('zz_price_dx')}元)</label>
						<div class="col-sm-10">
							<input type="text" name="price_dx" class="form-control"
								   value="{$web.price_dx}">
							<div class="alert alert-info">分别对应普通会员与VIP1～5等级，用|分隔，例如0.8|0.6|0.5|0.4|0.3|0.1
                            </div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">VIP会员开通价格</label>
						<div class="col-sm-10">
							<input type="text" name="price_vip" class="form-control"
								   value="{$web.price_vip}">
							<div class="alert alert-info">分别对应VIP1～5等级，用|分隔，例如3|5|10|15|22
                            </div>
						</div>
					</div-->
					{if condition="$web.super eq 1 || ZID eq 1"}
					<div class="form-group">
						<label class="col-sm-2 control-label">开通分站价格(二级主站无成本)</label>
						<div class="col-sm-10">
							<input type="number" name="price_ktfz" class="form-control"
								   value="{$web.price_ktfz}">
						</div>
					</div>
					{/if}
                    <div class="form-group">
                        <label class="col-sm-2 control-label">站长QQ</label>
                        <div class="col-sm-10">
                            <input type="text" name="qq" class="form-control" value="{$web.qq}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">站点名称</label>
                        <div class="col-sm-10">
                            <input type="text" name="name" class="form-control" value="{$web.name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">SEO标题</label>
                        <div class="col-sm-10">
                                <textarea name="title" rows="5"
                                          class="form-control">{:getHtmlCode($web.title,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">SEO关键词</label>
                        <div class="col-sm-10">
                            <textarea name="keywords" rows="5"
                                      class="form-control">{:getHtmlCode($web.keywords,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">SEO标题</label>
                        <div class="col-sm-10">
                            <textarea name="description" rows="5" class="form-control">{:getHtmlCode($web.description,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户面板页公告</label>
                        <div class="col-sm-10">
                            <textarea name="gg_panel" rows="5"
                                      class="form-control">{:getHtmlCode($web.gg_panel,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">QQ添加页公告</label>
                        <div class="col-sm-10">
                            <textarea name="gg_qqadd" rows="5"
                                      class="form-control">{:getHtmlCode($web.gg_qqadd,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">代挂下单页公告</label>
                        <div class="col-sm-10">
                            <textarea name="gg_dgadd" rows="5"
                                      class="form-control">{:getHtmlCode($web.gg_dgadd,true)}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">邀请列表页公告</label>
                        <div class="col-sm-10">
                            <textarea name="gg_invite" rows="5"
                                      class="form-control">{:getHtmlCode($web.gg_invite,true)}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;保存&gt;&gt;&gt;</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
